package com.ruixun.shopmanagement.entity;


/**
 * 购物车项
 * 
 * @author coach tam
 */
public class CartItem {


	private String pid;// 商品id
	private String pname;// 商品名字
	private String pimage;// 商品图片
	private Integer count;// 数量
	private Double subTotal;// 小计
	private Double shopPrice;// 价格
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public String getPname() {
		return pname;
	}
	public void setPname(String pname) {
		this.pname = pname;
	}
	public String getPimage() {
		return pimage;
	}
	public void setPimage(String pimage) {
		this.pimage = pimage;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public Double getSubTotal() {
		subTotal =count*shopPrice;
		return subTotal;
	}
	public void setSubTotal(Double subTotal) {
		this.subTotal = subTotal;
	}
	public Double getShopPrice() {
		return shopPrice;
	}
	public void setShopPrice(Double shopPrice) {
		this.shopPrice = shopPrice;
	}

	
}